package com.digdes.calendar.service.impl;

import com.digdes.calendar.dao.FileDAO;
import com.digdes.calendar.model.File;

import com.digdes.calendar.service.FileService;

/**
 * User: Sulo
 * Date: 24.04.12
 * Time: 18:48
 */
public class FileServiceImpl implements FileService {
    private FileDAO fileDAO;
    public File file;
    
    public void createFile(String filepath){
        file = null;
        file.setId(2L);
        file.setFilepath(filepath);
        fileDAO.saveFile(file);
        
        
        
    }
    public File test (){
    //    FileImpl user = new FileImpl();
        /*  //user.setId(1);
            user.setEmail("email");
            user.setName("stan");
            user.setSurname("petr");
            user.setPatronymic("ff");
            user.setPost("dssd");
        userDAO.saveUser(user);*/
        return fileDAO.findFileById(2L);

    }
    public void setFileDAO(FileDAO fileDAO) {
        this.fileDAO = fileDAO;
    }

    public FileDAO getFileDAO() {
        return fileDAO;
    }
    
    
}
